import requests
import kkl_config
import json



class WXWork:
    def __init__(self):
        self.url = kkl_config.URL_GO

    def listCorpWechatStudy(self):
        data = {"service_name": "nsrwechatweb.CorpWechatTagQueryFacade.listCorpWechatStudy",
                "param": {

                }}
        cookies = {"xhxtoken":kkl_config.Token.xhxtoken}
        responses = requests.post(self.url,json=data,cookies=cookies)
        kkl_config.prints(responses)

        print(json.dumps(responses.json(), ensure_ascii=False, indent=2))


if __name__ == "__main__":
    from login01 import LoginApi
    LoginApi().xhxLogin()
    WXWork().listCorpWechatStudy()